package DesignPatern.A02_工厂模式.QXB.A03_升级为多个工厂类;

/**
 * @Author: Du
 * @Date: 2021/7/20 19:58
 */
public class Main
{
    public static void main(String[] args)
    {
        Human whiteHuman = new WhiteFactory().createHuman();
        whiteHuman.getColor();
        whiteHuman.talk();
        
        Human blackHuman = new BlackFactory().createHuman();
        blackHuman.getColor();
        blackHuman.talk();
    }
}
